<include file="Common:header" title="管理员列表·"/>



<!--主题-->
<div class="page-header">
    <h1>
        您当前操作
        <small>
            <i class="ace-icon fa fa-angle-double-right"></i>
            联系我们
        </small>
    </h1>
</div>




<div class="row">
    <div class="col-xs-12">
        <form class="form-horizontal" id="form" method="post" action="{:U('Contact/index')}">
            <div class="form-group">
                <label class="col-lg-2 control-label" > 电话号码：  </label>
                <div class="col-sm-4">
                    <input type="number"  id="tel" name="tel" value="{$result.tel}" placeholder="输入电话号码"  class="form-control" />
                     </div>
            </div>
            <div class="space-4"></div>

            <div class="form-group">
                <label class="col-lg-2 control-label" > QQ：  </label>
                <div class="col-sm-4">
                    <input type="number"  id="qq" name="qq" value="{$result.qq}" placeholder="输入电话号码"  class="form-control" />
                </div>
            </div>
            <div class="space-4"></div>

            <div class="form-group">
                <label class="col-sm-2 control-label" > 地址：  </label>
                <div class="col-sm-4">
                    <input type="text" id="address" name="address" value="{$result.address}" placeholder="输入地址"  class="form-control" />
                   </div>
            </div>
            <div class="space-4"></div>


            <div class="clearfix form-actions">
                <div class="col-md-offset-3 col-md-9">
                    <div class="btn btn-info" onclick="submit_form()">
                        <i class="ace-icon fa fa-check bigger-110"></i>
                        保存
                    </div>

                    &nbsp; &nbsp; &nbsp;

                </div>
            </div>
        </form>
    </div>
</div>


<include file='Common:header_nav' />

<script>
    function submit_form() {
        if ($('#tel').val() == '') {
            layer.msg('手机号码不能为空');

            return false;
        }



        if ($('#tel').val().length !== 11) {
            layer.msg("手机号码为11位数字！请正确填写！");
            return false;
        }

        if ($('#address').val() == '') {
            layer.msg('地址不能为空');

            return false;
        }

        $('#form').submit();
    }
</script>
<include file="Common:footer"/>